<!DOCTYPE html>
<html lang="en">
<head>
<title>huangliusong</title>
<script src="./vue.js"></script>
</head>
 
<body>
	<div id="app">
		<div v-for="(item,key,index) of userinfo">
			{{item}}--{{key}}--{{index}}
		</div>
	</div>

	<script type="text/javascript">
	//Vue.set(vm.userinfo,"address","beijing")通过set改变、
	///vm.$set(vm.userinfo,"addres2","nanning")
	//数组 vue.set(vm.userinfo,1,5)
	//vm.$set(vm.userinfo,2,2)
	var vm =new Vue({
		el:"#app",
		data:{
			userinfo:{
				name:"hls",
				age:77,
				gender:"male",
				salary:"secret"
			}
		}
	})
	</script>
</body>

</html>